package com.tmobile.book.irishcoffee;

import java.util.ArrayList;


public class AppSingleton {

	private static AppSingleton instance;
	private ArrayList<String> chapterContent;
	private boolean isDataLoaded;
	private AppSingleton() {
		chapterContent = new ArrayList<String>();
	}

	public static void initInstance() {
		if (instance == null) {
			// Create the instance
			instance = new AppSingleton();
		}
	}

	public static AppSingleton getInstance() {
		return instance;
	}

	public ArrayList<String> getChapterContent() {
		return chapterContent;
	}
	
	
	public void addToChapterContent(String s){
		chapterContent.add(s);
	}

	public boolean isDataLoaded() {
		return isDataLoaded;
	}

	public void setDataLoaded(boolean isDataLoaded) {
		this.isDataLoaded = isDataLoaded;
	}
	
}
